import { extendRef } from '@peng_kai/kit/libs/vueuse';
import { useList } from '~comp-b/global-popups/invitation/hooks';

export { handleShare, tipsState, useHistoryList, useList } from '~comp-b/global-popups/invitation/hooks';

export function explain() {
  const { withdrawAmount, currency } = useList();

  const copywriter = computed(() => [
    { txt: $t('oGrGasXjuUnaiMcMoEpJp', { amount: withdrawAmount.value, currency: currency.value }) },
    { txt: $t('g3K5h83hgP4_7omvCgU3W') },
    { txt: $t('i1oXqvxOhvWsEOaC_8mV', { day: 7 }) },
    { txt: $t('v4mj5zLOvAn0iHwFx5Vm2') },
    { txt: $t('ljd7wJmlvcgWiyUBmJeN') },
  ]);
  return extendRef(copywriter, {});
}
